﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Chitietsanpham : System.Web.UI.Page
{
    SanPhamController SanPhamCTR = new SanPhamController();
    SanPhamEntity SanPhamE = new SanPhamEntity();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Sub_LoadFrist_DetailProduct();
        }
    }
    private void Sub_LoadFrist_DetailProduct()
    {
        if (Request.QueryString["idsp"].ToString() != "")
        {
            SanPhamE.MaSP = Request.QueryString["idsp"].ToString();
            frvDetailProduct.DataSource = SanPhamCTR.funC_GetDetailProduct(SanPhamE);
        }
    }
}